package com.af.system.exception;

import com.af.system.util.AfExceptionUtils;

/**
 * @author : zhenyun.su
 * @comment : 定义邮件相关异常
 * @since : 2020-8-28
 */

public class AfMailException extends AfException {
    public AfMailException() {
    }

    public AfMailException(String message) {
        super(message);
    }

    public AfMailException(Integer code, String message) {
        super(code, message);
    }

    public AfMailException(Integer code, String message, Object data) {
        super(code, message, data);
    }

    public static void throwException(String message) throws AfMailException {
        throw new AfMailException(message);
    }

    public static void throwException(Integer code, String message) throws AfMailException {
        throw new AfMailException(code, message);
    }

    public static void throwException(Integer code, String message, Object data) throws AfMailException {
        throw new AfMailException(code, message, data);
    }
}